package com.igeek.ch02.service;

import com.igeek.ch02.dao.UserDao;
import com.igeek.ch02.entity.User;

import java.sql.SQLException;

/**
 * @author chenmin
 * 2023/7/25 19:34
 * @description TODO
 */
public class UserService {

    private UserDao userDao = new UserDao();

    //登录
    public User login(String username , String address){
        try {
            User user = userDao.findOne(username, address);
            return user;
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            //对连接归还操作
        }
        return null;
    }

    //注册
    //分页条件查询列表

}
